package com.blkj.iam.system.service;

import com.blkj.iam.common.result.ApiResult;
import com.blkj.iam.system.model.entity.Dept;
import com.blkj.iam.system.model.entity.Menu;
import com.blkj.iam.system.model.entity.Role;
import com.blkj.iam.system.model.entity.User;

import java.util.List;

/**
 * @description: 用户数据同步接口
 * @author: Ethan
 * @create: 2025-05-08
 **/
public interface ServerDataSyncService {

    void addUser(User entity, List<Long> roleIds);

    void editUser(User entity, List<Long> roleIds);

    ApiResult deleteUsers(List<Long> ids);

    void addRole(Role role);

    void editRole(Role role);

    ApiResult deleteRole(Role role);

    void addDept(Dept dept);

    void editDept(Dept entity);

    ApiResult deleteDept(String deptId);

    void addMenu(Menu entity);

    void editMenu(Menu entity);

    void deleteMenu(String menuId);

}
